package com.why.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.why.entity.ShoppingCartEntity;
import com.why.vo.ShoppingCartVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * 购物车
 *
 * @author 夏沫止水
 * @email HeJieLin@gulimall.com
 * @date 2021-11-06 13:25:10
 */
@Mapper
public interface ShoppingCartDao extends BaseMapper<ShoppingCartEntity> {
    public List<ShoppingCartVO> selectShoppingCarts(@Param("userId") Long userId);

    public int updateCartnumByCartid(@Param("cartId") Long cartid, @Param("cartNum") Long cartNum);


    public List<ShoppingCartEntity> selectShopcartByCids(@Param("cids") Set<Long> userIds);
}
